package com.ms.demo;

import com.ms.demo.shape.Circle;
import com.ms.demo.shape.Rectangle;
import com.ms.demo.shape.Shape;
import com.ms.demo.shape.Square;

/**
 * @description:  外观类
 * @author: ms
 * @create: 2022-10-26 10:18
 */
public class ShapeMaker {

    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}